/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        binarySearchTree.put(0);
        binarySearchTree.put(12);
        binarySearchTree.put(1);
        binarySearchTree.put(4);
        binarySearchTree.put(6);
        binarySearchTree.put(15);
        binarySearchTree.put(23);
        binarySearchTree.put(34);
        binarySearchTree.put(22);
        System.out.println(binarySearchTree.remove(6));
        System.out.println(binarySearchTree.remove(0));
        System.out.println(binarySearchTree.remove(99));

    }
}